﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyDoanVien.DataLayer;
using QuanLyDoanVien.Bussiness;
using System.Data;

namespace QuanLyDoanVien.Controller
{
    class HoatDongHocSinhCtrl
    {
        HoatDongHocSinhData m_HoatDongHocSinhData = new HoatDongHocSinhData();
        public List<HoatDongHocSinhInfo> layDSHoatDongHS()
        {
            return m_HoatDongHocSinhData.layDSHoatDongHS();
        }

        public bool themHoatDongHS(HoatDongHocSinhInfo hdhs)
        {
            return m_HoatDongHocSinhData.themHoatDongHS(hdhs);
        }

        public bool xoaHoatDongHS(string maHD, string maHS)
        {
            return m_HoatDongHocSinhData.xoaHoatDongHS(maHD, maHS);
        }

        public bool capNhatHoatDongHS(HoatDongHocSinhInfo hdhs)
        {
            return m_HoatDongHocSinhData.capNhatHoatDongHS(hdhs);
        }
        public DataTable layDSHDHocSinh(string maLop)
        {
            return m_HoatDongHocSinhData.layDSHDHocSinh(maLop);
        }
      

        public HoatDongHocSinhInfo layHDHS(string maHD, string maHS)
        {
            return m_HoatDongHocSinhData.layHDHS(maHD, maHS);
        }
        public List<HoatDongHocSinhInfo> layDSHD(string maHD, int thamGia)
        {
            return m_HoatDongHocSinhData.layDSHD(maHD, thamGia);
        }

        public bool capNhatThamGia(string maHD, string maHS, int thamGia)
        {
            return m_HoatDongHocSinhData.capNhatThamGia(maHD, maHS, thamGia);
        }

        public DataTable layHoatDongHocSinh1(string maHD)
        {
            return m_HoatDongHocSinhData.layHoatDongHocSinh1(maHD);
        }
        public List<HoatDongHocSinhInfo> layDSHDHS(string maHocSinh)
        {
            return m_HoatDongHocSinhData.layDSHDHS(maHocSinh);
        }
        public bool capNhatHoatDongHS(string maHS,string maHD, string diem)
        {
            return m_HoatDongHocSinhData.capNhatHoatDongHS(maHS,maHD, diem);
        }
        public DataTable layHDHS(string maHocSinh)
        {
            return m_HoatDongHocSinhData.layHDHS(maHocSinh);
        }
    }
}
